package main

import (
	"context"
	"fmt"
	"github.com/modfy/fluent-ffmpeg"
	"time"
)

// test image add video using go-fluent-ffmpeg.
// 不支持filter.
func main() {
	ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
	defer cancel()
	cmd := fluentffmpeg.NewCommand("").InputPath("D:\\IMS\\ffmpeg\\ffmpeg-4.4-essentials_build\\bin\\h5video2.mp4").OutputFormat("ogg").OutputPath("./h5video2.ogg").RunWithContext(ctx)
	fmt.Println(cmd.Error())
}
